package cn.com.xinjinfu.pdoulcProduct.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 定期标详情
 * Created by android-adt on 2016/1/27.
 */
public class FixedProductInfoBean implements Serializable{

    private int code;
    private String msg;
    private int transferLimit;
    private int havCoupons;
    private int overdue;
    private int maxNewBidInvestAmount;
    private int canbuy;
    private int lockTranfer;
    private String lockTimeBefore;
    private String lockTimeAfter;
    private Date expireTime;
    private Date nowTime;
    private Jsonprepayment jsonprepayment;
    private List<String> audititems;
    private List<InvestBills> investBills;
    private Bid bid;

    public int getLockTranfer() {
        return lockTranfer;
    }

    public void setLockTranfer(int lockTranfer) {
        this.lockTranfer = lockTranfer;
    }

    public String getLockTimeBefore() {
        return lockTimeBefore;
    }

    public void setLockTimeBefore(String lockTimeBefore) {
        this.lockTimeBefore = lockTimeBefore;
    }

    public String getLockTimeAfter() {
        return lockTimeAfter;
    }

    public void setLockTimeAfter(String lockTimeAfter) {
        this.lockTimeAfter = lockTimeAfter;
    }

    public int getCanbuy() {
        return canbuy;
    }

    public void setCanbuy(int canbuy) {
        this.canbuy = canbuy;
    }

    public int getMaxNewBidInvestAmount() {
        return maxNewBidInvestAmount;
    }

    public void setMaxNewBidInvestAmount(int maxNewBidInvestAmount) {
        this.maxNewBidInvestAmount = maxNewBidInvestAmount;
    }

    public int getHavCoupons() {
        return havCoupons;
    }

    public void setHavCoupons(int havCoupons) {
        this.havCoupons = havCoupons;
    }

    public int getTransferLimit() {
        return transferLimit;
    }

    public void setTransferLimit(int transferLimit) {
        this.transferLimit = transferLimit;
    }

    public int getOverdue() {
        return overdue;
    }

    public void setOverdue(int overdue) {
        this.overdue = overdue;
    }

    public Jsonprepayment getJsonprepayment() {
        return jsonprepayment;
    }

    public void setJsonprepayment(Jsonprepayment jsonprepayment) {
        this.jsonprepayment = jsonprepayment;
    }

    public List<InvestBills> getInvestBills() {
        return investBills;
    }

    public void setInvestBills(List<InvestBills> investBills) {
        this.investBills = investBills;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Date getNowTime() {
        return nowTime;
    }

    public void setNowTime(Date nowTime) {
        this.nowTime = nowTime;
    }

    public List<String> getAudititems() {
        return audititems;
    }

    public void setAudititems(List<String> audititems) {
        this.audititems = audititems;
    }

    public Bid getBid() {
        return bid;
    }

    public void setBid(Bid bid) {
        this.bid = bid;
    }

    @Override
    public String toString() {
        return "FixedProductInfoBean{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", jsonprepayment='" + jsonprepayment + '\'' +
                ", investBills='" + investBills + '\'' +
                ", expireTime=" + expireTime +
                ", nowTime=" + nowTime +
                ", audititems=" + audititems +
                ", bid=" + bid +
                '}';
    }

    public static class Jsonprepayment {
        private double defaultinterest;
        private int prepaymentstatus;
        private int year;
        private int month;
        private int day;
        private double sunmoney;

        public double getDefaultinterest() {
            return defaultinterest;
        }

        public void setDefaultinterest(double defaultinterest) {
            this.defaultinterest = defaultinterest;
        }

        public int getPrepaymentstatus() {
            return prepaymentstatus;
        }

        public void setPrepaymentstatus(int prepaymentstatus) {
            this.prepaymentstatus = prepaymentstatus;
        }

        public int getYear() {
            return year;
        }

        public void setYear(int year) {
            this.year = year;
        }

        public int getMonth() {
            return month;
        }

        public void setMonth(int month) {
            this.month = month;
        }

        public int getDay() {
            return day;
        }

        public void setDay(int day) {
            this.day = day;
        }

        public double getSunmoney() {
            return sunmoney;
        }

        public void setSunmoney(double sunmoney) {
            this.sunmoney = sunmoney;
        }

        @Override
        public String toString() {
            return "Jsonprepayment{" +
                    "defaultinterest=" + defaultinterest +
                    ", prepaymentstatus=" + prepaymentstatus +
                    ", year=" + year +
                    ", month=" + month +
                    ", day=" + day +
                    ", sunmoney=" + sunmoney +
                    '}';
        }
    }
    public static class Bid {
        //概要信息
        private int status;
        private int period;
        private int periodUnit;
        private int productId;
        private int bidType;
        private float loanSchedule;
        private double amount;
        private double minInvestAmount;
        private double hasInvestedAmount;


        //基本信息
        private String title;
        private String agencyName;
        private double apr;
        private double discount;
        private Repayment repayment;

        //借款人信息
        private User user;

        //公司名称
        private String companyName;
        private String setupTime;
        private String companyLegal;
        private String registerCapital;
        private String cooperation;

        //借款描述
        private String Description;
        //房产信息
        private String location;
        private String buildArea;
        private String assessmentPrice;
        //风控信息
        private String riskInfo;

        public int getBidType() {
            return bidType;
        }

        public void setBidType(int bidType) {
            this.bidType = bidType;
        }

        public String getCompanyName() {
            return companyName;
        }

        public void setCompanyName(String companyName) {
            this.companyName = companyName;
        }

        public String getSetupTime() {
            return setupTime;
        }

        public void setSetupTime(String setupTime) {
            this.setupTime = setupTime;
        }

        public String getCompanyLegal() {
            return companyLegal;
        }

        public void setCompanyLegal(String companyLegal) {
            this.companyLegal = companyLegal;
        }

        public String getRegisterCapital() {
            return registerCapital;
        }

        public void setRegisterCapital(String registerCapital) {
            this.registerCapital = registerCapital;
        }

        public String getCooperation() {
            return cooperation;
        }

        public void setCooperation(String cooperation) {
            this.cooperation = cooperation;
        }

        public String getDescription() {
            return Description;
        }

        public void setDescription(String description) {
            Description = description;
        }

        public int getProductId() {
            return productId;
        }

        public void setProductId(int productId) {
            this.productId = productId;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getPeriod() {
            return period;
        }

        public void setPeriod(int period) {
            this.period = period;
        }

        public int getPeriodUnit() {
            return periodUnit;
        }

        public void setPeriodUnit(int periodUnit) {
            this.periodUnit = periodUnit;
        }

        public float getLoanSchedule() {
            return loanSchedule;
        }

        public void setLoanSchedule(float loanSchedule) {
            this.loanSchedule = loanSchedule;
        }

        public double getAmount() {
            return amount;
        }

        public void setAmount(double amount) {
            this.amount = amount;
        }

        public double getMinInvestAmount() {
            return minInvestAmount;
        }

        public void setMinInvestAmount(double minInvestAmount) {
            this.minInvestAmount = minInvestAmount;
        }

        public double getHasInvestedAmount() {
            return hasInvestedAmount;
        }

        public void setHasInvestedAmount(double hasInvestedAmount) {
            this.hasInvestedAmount = hasInvestedAmount;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getAgencyName() {
            return agencyName;
        }

        public void setAgencyName(String agencyName) {
            this.agencyName = agencyName;
        }

        public double getApr() {
            return apr;
        }

        public void setApr(double apr) {
            this.apr = apr;
        }

        public double getDiscount() {
            return discount;
        }

        public void setDiscount(double discount) {
            this.discount = discount;
        }

        public Repayment getRepayment() {
            return repayment;
        }

        public void setRepayment(Repayment repayment) {
            this.repayment = repayment;
        }

        public User getUser() {
            return user;
        }

        public void setUser(User user) {
            this.user = user;
        }

        public String getLocation() {
            return location;
        }

        public void setLocation(String location) {
            this.location = location;
        }

        public String getBuildArea() {
            return buildArea;
        }

        public void setBuildArea(String buildArea) {
            this.buildArea = buildArea;
        }

        public String getAssessmentPrice() {
            return assessmentPrice;
        }

        public void setAssessmentPrice(String assessmentPrice) {
            this.assessmentPrice = assessmentPrice;
        }

        public String getRiskInfo() {
            return riskInfo;
        }

        public void setRiskInfo(String riskInfo) {
            this.riskInfo = riskInfo;
        }

        @Override
        public String toString() {
            return "Bid{" +
                    "status=" + status +
                    ",period=" + period +
                    ", periodUnit=" + periodUnit +
                    ", loanSchedule=" + loanSchedule +
                    ", amount=" + amount +
                    ", minInvestAmount=" + minInvestAmount +
                    ", hasInvestedAmount=" + hasInvestedAmount +
                    ", title='" + title + '\'' +
                    ", agencyName='" + agencyName + '\'' +
                    ", apr=" + apr +
                    ", discount=" + discount +
                    ", repayment=" + repayment +
                    ", user=" + user +
                    ", location='" + location + '\'' +
                    ", buildArea='" + buildArea + '\'' +
                    ", assessmentPrice='" + assessmentPrice + '\'' +
                    ", riskInfo='" + riskInfo + '\'' +
                    '}';
        }
        public static class Repayment{
            private long id;
            private String name;
            private boolean isUse;

            public long getId() {
                return id;
            }

            public void setId(long id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public boolean isUse() {
                return isUse;
            }

            public void setIsUse(boolean isUse) {
                this.isUse = isUse;
            }

            @Override
            public String toString() {
                return "Repayment{" +
                        "id=" + id +
                        ", name='" + name + '\'' +
                        ", isUse=" + isUse +
                        '}';
            }

        }
        public static class User{
            private String realityName;
            private String idNumber;
            private String sex;
            private int age;
            private String maritalName;
            private String address;

            public String getRealityName() {
                return realityName;
            }

            public void setRealityName(String realityName) {
                this.realityName = realityName;
            }

            public String getIdNumber() {
                return idNumber;
            }

            public void setIdNumber(String idNumber) {
                this.idNumber = idNumber;
            }

            public String getSex() {
                return sex;
            }

            public void setSex(String sex) {
                this.sex = sex;
            }

            public int getAge() {
                return age;
            }

            public void setAge(int age) {
                this.age = age;
            }

            public String getMaritalName() {
                return maritalName;
            }

            public void setMaritalName(String maritalName) {
                this.maritalName = maritalName;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            @Override
            public String toString() {
                return "User{" +
                        "realityName='" + realityName + '\'' +
                        ", idNumber='" + idNumber + '\'' +
                        ", sex='" + sex + '\'' +
                        ", age=" + age +
                        ", maritalName='" + maritalName + '\'' +
                        ", address='" + address + '\'' +
                        '}';
            }
        }
    }
}
